package my.practice.designpattern.factory;

import my.practice.designpattern.factory.ingredient.*;

/**
 * Created by 丁旭 on 2017/12/14.
 */
public abstract class Pizza {
    protected IngredientFactory factory;

    String name;

    Dough dough;
    Chesse chesse;
    Clams clams;
    Pepperoni pepperoni;
    Sauce sauce;
    Veggies[] veggies;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public Pizza(IngredientFactory factory) {
        this.factory = factory;
    }

    public abstract void prepare();

    public void bake() {
        System.out.println("bake");
    }

    public void cut() {
        System.out.println("cut");
    }

    public void box() {
        System.out.println("box");
    }
}
